<ul class="nav nav-sidebar left-sidebar-profile-menu">
	<li class="active"><a href="<?php echo base_url(); ?>users/message/<?=$this->uri->segment(3)?>"><span class="glyphicon glyphicon-envelope"></span> Send Message</a></li>
	<li class="active"><a href="<?php echo base_url(); ?>users/album/<?=$this->uri->segment(3)?>"><span class="glyphicon glyphicon-envelope"></span> View Photos / Videos</a></li>
	<li class="active"><a href="javascript:void(0)" onclick="return reportuser('<?=$this->uri->segment(3)?>')"><span class="glyphicon glyphicon-envelope"></span> Report</a></li>
</ul>
<script>
function reportuser(userid)
{
	$.ajax({
			url: '<?php echo base_url()?>ajax/reportuser',
			data:{userid:userid},
			type: "POST",
			dataType: 'json',
			beforeSend: function(){
				$('#processing-modal').modal('show');
			},
			success: function(json) {
				if (json['success']) 
				{
					$('#ajax_msg').show().append(json['success']);
					$('html, body').animate({ scrollTop: 0 }, 'slow');
					$('#processing-modal').modal('hide');
				}
			},
			
		});
}
</script>